<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录钱包</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f7f7f7;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column; 
        }
        form {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            width: 350px;
            text-align: center; /* 表单文本居中 */
        }
        h2 {
            margin-bottom: 20px;
            color: #333;
            font-size: 24px; /* 增加标题字体大小 */
        }
        .input-group {
            margin-bottom: 15px;
        }
        input {
            width: calc(100% - 20px); /* 减去padding的宽度 */
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
            font-size: 16px; /* 调整输入框字体大小 */
        }
        button {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 18px; /* 增加按钮文字大小 */
            margin-top: 10px; /* 为按钮添加顶部间距 */
        }
        button.login {
            background-color: #5c67f2;
            color: white;
        }
        button.login:hover {
            background-color: #4a54e1;
        }
        button.register {
            background-color: #f0f0f0;
            color: #333;
        }
        button.register:hover {
            background-color: #e0e0e0;
        }
    </style>
</head>
<body>
    <h2>登录您的钱包</h2>
    <form id="loginForm">
        <div class="input-group">
            <input type="password" id="loginPassword" placeholder="请输入密码" required />
        </div>
        <div class="input-group">
            <input type="text" id="loginMnemonic" placeholder="请输入助记词" required />
        </div>
        <button type="submit" class="login">登录</button>
        <button type="button" class="register" onclick="window.location.href='register.html'">注册新钱包</button>
    </form>

    <script src="login.js"></script>
</body>
</html>